﻿using System;
using System.Runtime.InteropServices;

namespace Vtron.LEDCorrective.Domain.LEDSender
{
    /// <summary>
    /// 色温
    /// </summary>
    /// <remarks>
    /// struct _scp_colortemp_t
    /// {
    ///     u_int16_t		mode;   /*色温模式,共4种，默认有3种模式： 4200/6500/9300，另一种为自定义*/	
    ///     u_int16_t		brightR;	/*红色亮度。*/
    ///     u_int16_t		brightG;	/*绿色亮度。*/
    ///     u_int16_t		brightB;	/*蓝色亮度。*/
    /// }PACKED;
    /// typedef struct _scp_colortemp_t	SCP_COLORTEMP_t;
    /// </remarks>
    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct SCP_COLORTEMP_T
    {
        /// <summary>
        /// 色温模式,共4种，默认有3种模式： 4200/6500/9300，另一种为自定义
        /// </summary>
        public UInt16 mode;

        /// <summary>
        /// 红色亮度
        /// </summary>
        public UInt16 brightR;

        /// <summary>
        /// 绿色亮度
        /// </summary>
        public UInt16 brightG;

        /// <summary>
        /// 蓝色亮度
        /// </summary>
        public UInt16 brightB;
    }
}
